<?php

class App_Plugin_Widget extends Zend_Controller_Plugin_Abstract
{
    public function preDispatch(Zend_Controller_Request_Abstract $request)
    {
        $layout = \Zend_Layout::getMvcInstance()->getView();
        $layout->widgets = \Managers\WidgetLoader::getWidgets();
    }
}
